package com.hao.crm.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hao.crm.page.PageResult;
import com.hao.crm.query.QueryObject;
import com.hao.crm.service.IPermissionService;

@Controller
public class PermissionController {
	@Autowired
	private IPermissionService permissionService;
	@RequestMapping("/permission_list")
	@ResponseBody
	public PageResult list(QueryObject qo) {
		return permissionService.selectByCondition(qo);
	}
	@RequestMapping("/permission_selectByRid")
	@ResponseBody
	public PageResult selectByRid(Long rid) {
		return permissionService.selectByRid(rid);
	}

}
